package com.fry.mall.wallet.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fry.mall.wallet.dto.RefundDTO;
import com.fry.mall.wallet.dto.UserConsumeDTO;
import com.fry.mall.wallet.dto.UserWalletDTO;
import com.fry.mall.wallet.entity.UserWallet;
import com.fry.mall.wallet.entity.UserWalletLog;
import com.fry.mall.wallet.response.ResponseResult;

import java.util.List;

/**
 * @Author: FRY
 * @CreateTime: 2023-03-02  22:01
 */
public interface UserWalletService extends IService<UserWallet> {


    UserWalletDTO getUserWalletBalance();

    Boolean dealConsumeOrder(UserConsumeDTO userConsumeDTO);

    ResponseResult<String> dealRefund(RefundDTO refundDTO);

    List<UserWalletLog> getBalanceChanges();
}
